﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Security.Domain;

namespace Security.View.QuickViews.Reports
{
    [DisplayName("Должность")]
    internal class PostQuickReport
    {
        public PostQuickReport(Post post)
        {
            ID = post.ID;
            Name = post.Name;
            PermissionReports = post.PostPermissions.Select(e => new AssociatedPermissionQuickReport(e)).ToArray();
        }

        [Browsable(false)]
        [DisplayName("Идентификатор")]
        public Guid ID { get; set; }
        [DisplayName("Имя")]
        public string Name { get; set; }
        [DisplayName("Сотрудники")]
        public ICollection<AssociatedPermissionQuickReport> PermissionReports { get; set; }

    }
}
